import request from '@/utils/request'

export function getList(params) {
  return request({
    url: '/vue-admin-template/table/list',
    method: 'get',
    params
  })
}

// login登录
export function login(data) {
  return request({
    url: 'api/sys/login',
    method: 'post',
    data
  })
}
// 获取用户基本资料
export function getProfile() {
  return request({
    method: 'post',
    url: 'api/sys/profile'
  })
}
// 获取用户头像
export function getUserDetailById(id) {
  return request({
    method: 'get',
    url: `api/sys/user/${id}`
  })
}
